package com.cloud.controller;

import com.cloud.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import com.cloud.service.AgentService;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/agent")
@RestController
public class AgentController {
	
	@Autowired
	private AgentService agentService;
	
	@RequestMapping("/list")
	public R list() {
		return agentService.queryAll();
	}
	
	@RequestMapping("/invitate")
	public R invitate() {
		return agentService.queryInvitate();
	}
}
